﻿using System;
using System.ComponentModel.DataAnnotations;

namespace NandleNF.DataType.Produto
{
    [Serializable()]
    [Table("Preco")]
    public class TPreco
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Int32 PrecoID { get; set; }

        [Required]
        [Range(0.01, Double.MaxValue)]
        public Decimal ValorItem { get; set; }

        public Decimal ValorDesconto { get; set; }

        [Required]
        [Range(0.01, Double.MaxValue)]
        public Decimal ValorFinal { get; set; }

        [Range(0.01, Double.MaxValue)]
        public Decimal Desconto { get; set; }

        [Required]
        public Boolean IsAtivo { get; set; }
    }
}
